package c.h.a.j0;

import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import c.h.a.e0.a;
import c.h.a.m0.h;
import c.h.a.x.r;
import com.liuzh.deviceinfo.appinfo.AppInfoActivity;
import com.liuzh.deviceinfo.appinfo.ManifestActivity;

/* compiled from: lambda */
public final /* synthetic */ class c implements OnClickListener {
    public final /* synthetic */ i0 a;

    public /* synthetic */ c(i0 i0Var) {
        this.a = i0Var;
    }

    public final void onClick(DialogInterface dialogInterface, int i) {
        i0 i0Var = this.a;
        if (i0Var.f0 != null) {
            String str = "android.permission.WRITE_EXTERNAL_STORAGE";
            switch (i) {
                case 0:
                    h.n(i0Var.Z(), i0Var.f0.c);
                    return;
                case 1:
                    r.d(i0Var.Z(), i0Var.f0.f);
                    return;
                case 2:
                    if (a.b(i0Var.Z(), str)) {
                        i0Var.u0();
                        return;
                    } else {
                        i0Var.X(new String[]{str}, 1);
                        return;
                    }
                case 3:
                    Context Z = i0Var.Z();
                    c.h.a.d0.a aVar = i0Var.f0;
                    str = aVar.c;
                    String c = r.c(str, aVar.e);
                    int i2 = ManifestActivity.v;
                    Intent intent = new Intent(Z, ManifestActivity.class);
                    intent.putExtra("pkg", str);
                    intent.putExtra("fileName", c);
                    Z.startActivity(intent);
                    return;
                case 4:
                    if (a.b(i0Var.Z(), str)) {
                        i0Var.w0();
                        return;
                    } else {
                        i0Var.X(new String[]{str}, 2);
                        return;
                    }
                case 5:
                    h.m(i0Var.Z(), i0Var.f0.c);
                    return;
                case 6:
                    AppInfoActivity.F(i0Var.Z(), i0Var.f0.c);
                    return;
                case 7:
                    h.x(i0Var.Z(), i0Var.f0.c);
                    return;
                default:
                    return;
            }
        }
    }
}
